home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / cups-bsd.postrm < prev    next >
Text File  |  2008-10-20  |  1KB  |  48 lines

  1. #! /bin/sh
  2. # postrm script for cups-bsd
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <postrm> `remove'
  10. #        * <postrm> `purge'
  11. #        * <old-postrm> `upgrade' <new-version>
  12. #        * <new-postrm> `failed-upgrade' <old-version>
  13. #        * <new-postrm> `abort-install'
  14. #        * <new-postrm> `abort-install' <old-version>
  15. #        * <new-postrm> `abort-upgrade' <old-version>
  16. #        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
  17. # for details, see /usr/doc/packaging-manual/
  18.  
  19. case "$1" in
  20.     purge)
  21.         # Remove inetd entry
  22.         update-inetd --pattern cups-lpd --remove printer 2>/dev/null || true
  23.  
  24.         ;;
  25.  
  26.     remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  27.  
  28.         ;;
  29.  
  30.     *)
  31.         echo "postrm called with unknown argument \`$1'" >&2
  32.         exit 0
  33.  
  34. esac
  35.  
  36. # dh_installdeb will replace this with shell code automatically
  37. # generated by other debhelper scripts.
  38.  
  39. # Automatically added by dh_installdebconf
  40. if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
  41.     . /usr/share/debconf/confmodule
  42.     db_purge
  43. fi
  44. # End automatically added section
  45.  
  46.  
  47.  
  48.